package me.quexi.georgia.vo;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class HttpContext {
	
    private HttpServletRequest request;	
    private HttpServletResponse response;
	private ServletContext context;	
	private HttpSession session;
	
	public static HttpContext createHttpContext(HttpServletRequest request, HttpServletResponse response){
		return new HttpContext(request, response, request.getSession(), request.getServletContext());
	}
	
	public HttpContext(HttpServletRequest request, HttpServletResponse response, HttpSession session, ServletContext context){
		
		this.request = request;
		this.response = response;
		this.context = context;
		this.session = session;
		
	}
	
    public HttpServletRequest getRequest() {
		return request;
	}

    public HttpServletResponse getResponse() {
		return response;
	}

    public HttpSession getSession() {
		return session;
	}

	public ServletContext getContext() {
		return context;
	}
    
    
}
